Iterating through an integer in python using a For Loop Logic Error

welcome to shbcf.ru